Post

Replies

Boosts

Views

Activity

Reply to Hitting Space Bar continuosly resets cursor position in a UITextField with an external font set.
The same problem occurs in UITextView. (reproduced on the following devices: iPhone Xs Max 14.3) This problem can be solved by the following temporary measures. func textViewDidChange(_ textView: UITextView) { textView.text = textView.text.replacingOccurrences(of: " ", with: "\u{2002}") } referenced this https://en.wikipedia.org/wiki/Whitespace_character
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’21